					<div class="column" style="width:30%;" onmouseover="Hovercat('<?php echo $faq->id;?>')" onmouseout="Outcat('<?php echo $faq->id;?>')">
		            	<a href="javascript:;" class="art ">
		            		<?php 
		            			$content = $faq->question;
		            			$content = strip_tags($content);
		            			if(strlen($content) > 60){
		            				$content = substr($content,0,60);
		            				$posw=strrpos($content," ");
		            				if($posw > 0)$content = substr($content,0,$posw);
		            				echo $content.'...';
		            			}else {
		            				echo $content;
		            			}
		            		?>
		            	</a><br />
		                <div class="action" id="neocat-<?php echo $faq->id;?>">
		                    <img src="<?php echo base_url();?>public/admin/img/edit.gif" /><a href="javascript:void(0)" onclick="open_form('<?php echo admin_url(); ?>/edit-faqs/<?php echo $faq->id;?>')"><?php echo $this->lang->line('edit'); ?></a>|<img src="<?php echo base_url();?>public/admin/img/delete.gif" /><a href="<?php echo admin_url();?>/delete-faqs/<?php echo $faq->id;?>" onclick="return confirm('<?php echo $this->lang->line('delete_conf'); ?>');"><font color="#be0000"><?php echo $this->lang->line('delete'); ?></font></a>
		                </div>
		            </div>
		            <div class="column" style="width:40%;">
		            	<span style="color: green;">
		            		<?php 
		            			$content = $faq->answers;
		            			$content = strip_tags($content);
		            			if(strlen($content) > 80){
		            				$content = substr($content,0,80);
		            				$posw=strrpos($content," ");
		            				if($posw > 0)$content = substr($content,0,$posw);
		            				echo $content.'...';
		            			}else {
		            				echo $content;
		            			}
		            		?>
	            		</span>
		            </div>
		            <div class="column " style="width:10%;"><?php echo $faq->cate_name;?></div>
		            <div class="column" style="width:8%;">
		            	<input type="text" name="order" class="order" id="<?php echo $faq->id;?>" value="<?php echo $faq->order;?>" style="width:45px; float:left;" />
		            </div>
		            <div class="column" style="width:5%;">
		            <?php if($faq->active == 'yes'){?>
		            	<a href="javascript:void(0);" onclick="faqs_status('<?php echo $faq->id;?>', 'no', '<?php echo $this->lang->line('status_mess'); ?>')"><img src="<?php echo base_url();?>public/admin/img/active.png" title="<?php echo $this->lang->line('active'); ?>" alt="Yes" class="icon png" /></a>
					<?php }else{?>		            	
		            	<a href="javascript:void(0);" onclick="faqs_status('<?php echo $faq->id;?>', 'yes', '<?php echo $this->lang->line('status_mess'); ?>')"><img src="<?php echo base_url();?>public/admin/img/pending.png" title="<?php echo $this->lang->line('suspend'); ?>" alt="No" class="icon png" /></a>
		            <?php }?>
		            </div>
		            
<script type="text/javascript">
    $(function(){
        $('.order').keydown(function(event){
            if ( event.keyCode == 46 || event.keyCode == 8 ) {
                // let it happen, don't do anything
            }else{
                // Ensure that it is a number and stop the keypress
                if ((event.keyCode < 48 || event.keyCode > 57) && (event.keyCode < 96 || event.keyCode > 105 )) {
                    event.preventDefault(); 
                }   
            }
            
            if(event.keyCode == 13) { // Enter pressed
                var faq_order = $(this).val(); 
                var faq_id = $(this).attr('id');
                alert('<?php echo $this->lang->line('order_mess'); ?>');
                $('input[name="faq_id"]').val(faq_id);
                $('input[name="faq_order"]').val(faq_order);
                $('#change_order_faq').submit();
            }
        });
    })
</script>
<?php
    echo form_open(admin_url('faqs/change-order'), array('id' => 'change_order_faq'), array('faq_id' => 0, 'faq_order' => 0));
    echo form_close();
?>